var BaseUrl = "https://jg.zhelan.net/JGApi/Api/";
//var BaseUrl = "http://localhost/zlspapi/Api/";
var IsPc = true;
var big='?imageView2/0/w/750';
var middle='?imageView2/0/w/640/h/640';
var small='?imageView2/0/w/320/h/320';
var djpg = '../../css/skin/default/add_pic.png';


 

//定义serializeObject方法，序列化表单
$.fn.serializeObject = function() {
	var o = {};
	var a = this.serializeArray();
	$.each(a, function() {
		if(o[this.name]) {
			if(!o[this.name].push) {
				o[this.name] = [o[this.name]];
			}
			o[this.name].push(this.value || '');
		} else {
			o[this.name] = this.value || '';
		}
	});
	return o;
};

Date.prototype.format = function(format) //author: meizz 
	{
		var o = {
			"M+": this.getMonth() + 1, //month         
			"d+": this.getDate(), //day         
			"h+": this.getHours(), //hour         
			"m+": this.getMinutes(), //minute         
			"s+": this.getSeconds(), //second         
			"q+": Math.floor((this.getMonth() + 3) / 3), //quarter         
			"S": this.getMilliseconds() //millisecond     
		}
		if(/(y+)/.test(format))
			format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
		for(var k in o)
			if(new RegExp("(" + k + ")").test(format))
				format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
		return format;
	}